package com.groupbuying.sysconfig.service.impl.configuration;


import com.groupbuying.sysconfig.dao.SysconfigPlatformInfoDao;
import com.groupbuying.sysconfig.domain.SysconfigPlatformInfoDO;
import com.groupbuying.sysconfig.service.configuration.SysconfigPlatformInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class SysconfigPlatformInfoServiceImpl implements SysconfigPlatformInfoService {
	@Autowired
	private SysconfigPlatformInfoDao sysconfigPlatformInfoDao;
	
	@Override
	public SysconfigPlatformInfoDO get(String appId){
		return sysconfigPlatformInfoDao.get(appId);
	}
	
	@Override
	public List<SysconfigPlatformInfoDO> list(Map<String, Object> map){
		return sysconfigPlatformInfoDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return sysconfigPlatformInfoDao.count(map);
	}
	
	@Override
	public int save(SysconfigPlatformInfoDO sysconfigPlatformInfo){
		return sysconfigPlatformInfoDao.save(sysconfigPlatformInfo);
	}
	
	@Override
	public int update(SysconfigPlatformInfoDO sysconfigPlatformInfo){
		return sysconfigPlatformInfoDao.update(sysconfigPlatformInfo);
	}
	
	@Override
	public int remove(String appId){
		return sysconfigPlatformInfoDao.remove(appId);
	}
	
	@Override
	public int batchRemove(String[] appIds){
		return sysconfigPlatformInfoDao.batchRemove(appIds);
	}

	/*获取配置中心信息*/
	@Override
	public SysconfigPlatformInfoDO getConfigurationCenter(String indicate, String tag) {
		return sysconfigPlatformInfoDao.getConfigurationCenter(indicate, tag);
	}

}
